//
//  CardModel.m
//  day-07-card
//
//  Created by hcios on 2017/7/9.
//  Copyright © 2017年 hcios. All rights reserved.
//

#import "CardModel.h"
#import "Tools.h"

@implementation CardModel

-(instancetype)initWithDict:(NSDictionary *)dict{
    
    if (self = [super init]) {
        _city_id = numberToString(dict[@"id"]);
        _city_name_zh_cn = NonEmptyString(dict[@"name_zh_cn"]);
        _city_name_en = NonEmptyString(dict[@"name_en"]);
        _city_image_url = NonEmptyString(dict[@"image_url"]);
    }
    return self;
}

@end
